#!/bin/bash

BIBLIOGRAPHY=${1}
OUTPUT_PATH=${2}

grep -v "OPTSHORT" ${BIBLIOGRAPHY} > ${OUTPUT_PATH}/long.bib
sed -i -r "s/OPTLONG//g" ${OUTPUT_PATH}/long.bib

grep -v "OPTLONG" ${BIBLIOGRAPHY} > ${OUTPUT_PATH}/main.bib
sed -i -r "s/OPTSHORT//g"  ${OUTPUT_PATH}/main.bib
